<template>
  <div>
    <BaseTable  :columns="columns" primary-key="userId" :url="baseUrl"></BaseTable>
  </div>
</template>
<script >
import Service from "api/Service";

export default {
  name: 'User' ,
  data(){
    return {
      baseUrl: `${Service.xcdhBaseService}/user` ,
      columns:[
        {
          key: 'username' ,
          title: '用户名',
          search: true
        },
        {
          key: 'phone' ,
          title: '手机号',
          search: true
        },
        {
          key: 'deptName' ,
          title: '部门名称',
        },
        {
          key: 'createTime' ,
          title: '创建时间',
          form: false
        },
        {
          key: 'lockFlag',
          title: '锁定状态',
          is: 'LockView'
        },
        {
          key: 'delFlag',
          title: '删除状态'
        },
        {
          type: 'action',
          title: '操作',
          buttons:[
            {
              is: "DeleteButton",
              title: '删除'
            },
            {
              is: "EditFormButton",
              title: '编辑',
              attrs:{
                class: 'mar-rl-10px'
              }
            },
            {
              is: "EditFormButton",
              title: '添加'
            }
          ]
        }

      ]
    }
  }
}
</script>

<style scoped>

</style>